ContainsKey Method

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Determines if this dictionary contains a key equal to key. The dictionary is not changed.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public override sealed bool ContainsKey(
	TKey key
)
Visual Basic (Declaration)
Public Overrides NotOverridable Function ContainsKey ( _
	key As TKey _
) As Boolean
Visual C++
public:
virtual bool ContainsKey (
	TKey key
) override sealed

Parameters

key
TKey
The key to search for.

Return Value

True if the dictionary contains key. False if the dictionary does not contain key.

Remarks

Searching the dictionary for a key takes time O(log N), where N is the number of keys in the dictionary.

See Also